package o;

import android.os.Bundle;
import com.huawei.appgallery.foundation.ui.framework.cardframe.bean.BaseDetailResponse.DataFilterSwitch;
import com.huawei.appgallery.foundation.ui.framework.cardframe.fragment.BaseListFragment;
import com.huawei.appgallery.foundation.ui.framework.titleframe.bean.SpinnerItem;
import java.io.Serializable;
import java.lang.ref.WeakReference;

public class chq implements chu {
    private WeakReference<BaseListFragment> ˊ;

    public chq(BaseListFragment baseListFragment) {
        this.ˊ = new WeakReference(baseListFragment);
    }

    public void ॱ(dgp o_dgp, Bundle bundle) {
        if (this.ˊ != null && o_dgp != null && bundle != null) {
            BaseListFragment baseListFragment = (BaseListFragment) this.ˊ.get();
            if (baseListFragment == null || baseListFragment.ᐧॱ == null) {
                Logger.e("ResetPageCache", "ResetPageCache, onTabDestroyed, listFragment = " + baseListFragment + ", fragmentId = " + o_dgp.ॱ());
                return;
            }
            baseListFragment.ᐧॱ.ˋ(o_dgp.ॱ(), null);
            Serializable serializable = bundle.getSerializable("data_filter_switch");
            Serializable serializable2 = bundle.getSerializable("spinner_item");
            if (serializable instanceof DataFilterSwitch) {
                o_dgp.ˏ((DataFilterSwitch) serializable);
            }
            if (serializable2 instanceof SpinnerItem) {
                o_dgp.ॱ((SpinnerItem) serializable2);
            }
            if (Logger.ˎ()) {
                Logger.ˏ("ResetPageCache", "ResetPageCache, onTabDestroyed, fragmentId = " + o_dgp.ॱ());
            }
        }
    }
}
